package com.cans.builder;

/**
 * 小米手机建造者实现
 *
 * @author cans
 * @date 2024/2/18
 **/
public class MiPhoneBuilderImpl implements PhoneBuilder {

    private final PhoneProduct product;

    public MiPhoneBuilderImpl() {
        product = new PhoneProduct();
    }

    @Override
    public void buildCpu() {
        product.setCpu("澎湃S1");
    }

    @Override
    public void BuildArm() {
        product.setArm("12G");
    }

    @Override
    public void buildDisk() {
        product.setDisk("1024G");
    }

    @Override
    public PhoneProduct build() {
        return product;
    }
}
